package com.qf.flash.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 创建日期：2020/3/8 on 11:16
 * 描述:
 * 作者:戴旭东
 */
public class ScriptRoleBean implements Parcelable {

    private String id;      //	String	角色id
    private String name;    //	String	角色名称
    private String content; //	String	介绍
    private String image;   //	String	角色图片
    private int age;        //	int	年龄
    private String sex;     //	String	性别，1男，2女

    public ScriptRoleBean() {
    }

    protected ScriptRoleBean(Parcel in) {
        id = in.readString();
        name = in.readString();
        content = in.readString();
        image = in.readString();
        age = in.readInt();
        sex = in.readString();
    }

    public static final Creator<ScriptRoleBean> CREATOR = new Creator<ScriptRoleBean>() {
        @Override
        public ScriptRoleBean createFromParcel(Parcel in) {
            return new ScriptRoleBean(in);
        }

        @Override
        public ScriptRoleBean[] newArray(int size) {
            return new ScriptRoleBean[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(name);
        dest.writeString(content);
        dest.writeString(image);
        dest.writeInt(age);
        dest.writeString(sex);
    }
}
